package VN.EDU.IMIC.DEVELOPER.DOTHANHTUNG.ARRAYBAI10;

public class View {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// khoi tao sinh vien
		String[][] ans = new String[8][10];

		// add to student 1
		ans[0][0] = "A";
		ans[0][1] = "B";
		ans[0][2] = "A";
		ans[0][3] = "C";
		ans[0][4] = "C";
		ans[0][5] = "D";
		ans[0][6] = "E";
		ans[0][7] = "E";
		ans[0][8] = "A";
		ans[0][9] = "D";

		// add to student 2
		ans[1][0] = "D";
		ans[1][1] = "B";
		ans[1][2] = "A";
		ans[1][3] = "B";
		ans[1][4] = "C";
		ans[1][5] = "A";
		ans[1][6] = "E";
		ans[1][7] = "E";
		ans[1][8] = "A";
		ans[1][9] = "D";

		// add to student 3
		ans[2][0] = "E";
		ans[2][1] = "D";
		ans[2][2] = "D";
		ans[2][3] = "A";
		ans[2][4] = "C";
		ans[2][5] = "B";
		ans[2][6] = "E";
		ans[2][7] = "E";
		ans[2][8] = "A";
		ans[2][9] = "D";

		// add to student 4
		ans[3][0] = "C";
		ans[3][1] = "B";
		ans[3][2] = "A";
		ans[3][3] = "E";
		ans[3][4] = "D";
		ans[3][5] = "C";
		ans[3][6] = "E";
		ans[3][7] = "E";
		ans[3][8] = "A";
		ans[3][9] = "D";

		// add to student 5
		ans[4][0] = "A";
		ans[4][1] = "B";
		ans[4][2] = "D";
		ans[4][3] = "C";
		ans[4][4] = "C";
		ans[4][5] = "D";
		ans[4][6] = "E";
		ans[4][7] = "E";
		ans[4][8] = "A";
		ans[4][9] = "D";

		// add to student 6
		ans[5][0] = "B";
		ans[5][1] = "B";
		ans[5][2] = "A";
		ans[5][3] = "C";
		ans[5][4] = "C";
		ans[5][5] = "D";
		ans[5][6] = "E";
		ans[5][7] = "E";
		ans[5][8] = "A";
		ans[5][9] = "D";

		// add to student 7
		ans[6][0] = "E";
		ans[6][1] = "B";
		ans[6][2] = "E";
		ans[6][3] = "C";
		ans[6][4] = "C";
		ans[6][5] = "D";
		ans[6][6] = "E";
		ans[6][7] = "E";
		ans[6][8] = "A";
		ans[6][9] = "D";

		// add to student 8
		ans[7][0] = "B";
		ans[7][1] = "B";
		ans[7][2] = "A";
		ans[7][3] = "C";
		ans[7][4] = "C";
		ans[7][5] = "B";
		ans[7][6] = "A";
		ans[7][7] = "E";
		ans[7][8] = "A";
		ans[7][9] = "D";
		
		//khoi tao mang dap an
		
		String[] key = new String[10];
		key[0] = "D";
		key[1] = "B";
		key[2] = "D";
		key[3] = "C";
		key[4] = "C";
		key[5] = "D";
		key[6] = "A";
		key[7] = "E";
		key[8] = "A";
		key[9] = "D";
		//khoi tao controller
		Controller c_obj = new Controller();
		
		//thuc thi
		int[] result = c_obj.checkmark(ans, key);
		for (int i = 0; i< result.length;i++){
			System.out.println(result[i]);
		}
	}

}
